/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exercicio.lista2;

import java.util.Random;

/**
 *
 * @author afonso
 */
public class Questao6 {

    public static void main(String[] args) {
        int nExp =100;
        Random r = new Random(System.currentTimeMillis());
        int soma = 0;
        for (int i = 0; i < nExp; i++) {
            soma += r.nextInt(6) + 1;
        }
        System.out.println("Quantia: R$" + soma);
    }
}
